import com.tengfei.service.UserService;
import com.tengfei.service.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description:
 * @author: ten_fei
 * @date: 2021-07-09 20:24
 */
public class test {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        // 动态代理，代理的是接口
        UserService userService = context.getBean("userService", UserService.class);

        userService.add();
        userService.delete();
        userService.modify();
        userService.query();

    }
}
